package com.lpinfo.spb.plateform.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("sys_dept")
public class SysDept implements Serializable {

    //主键
    @TableId(value = "dept_id", type = IdType.ID_WORKER)
    private Long deptId;

    @TableField("dept_name")
    private String deptName;

    @TableField("parent_id")
    private Long parentId;

    @TableField("parentIds")
    private String parent_ids;

    @TableField("dept_sort")
    private Long deptSort;

    @TableField("delete_flag")
    private String deleteFlag;

    @TableField("tenant_id")
    private Long tenantId;

    @TableField("create_user")
    private Long createUser;

    //创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private LocalDateTime createTime;


}
